import axios from 'axios'
export default class leasePlan {
     //添加计划与明细
     addLeasePlan(leasePlan){
        return axios.post('http://localhost/leasePlan',leasePlan)
     }

     addLeasePlanDetails(leasePlanDetails){
         var params ={}
         params.leasePlanDetails=leasePlanDetails;
         return axios.post(`http://localhost/leasePlandetails`,params)
     }
     //查询租赁计划
     listLeasePlan(args){
          return axios.get('http://localhost/leasePlan',{params:args})
     }
     //查询项目信息
     getProject(){
         return axios.get('http://localhost/leasePlan/getProject')
     }

}